package com.renwei.yunlong.pager;

import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;

import com.renwei.yunlong.R;
import com.renwei.yunlong.adapter.SpareApplicationProcessAdapter;
import com.renwei.yunlong.base.BaseFragment;

/**
 * 备件申请相关 过程  页面
 *
 * Created by Administrator on 2017/9/11.
 */

public class SpareApplicationProcessPager extends BaseFragment implements View.OnClickListener{

    private RecyclerView recyclerView;
    SpareApplicationProcessAdapter adapter;

    @Override
    public View initView() {
        View view = LayoutInflater.from(mActivity).inflate(R.layout.fragment_spare_application_process, null);
        recyclerView = (RecyclerView) view.findViewById(R.id.recyclerView);

        return view;
    }

    @Override
    public void initData() {
        adapter = new SpareApplicationProcessAdapter(getActivity(), new SpareApplicationProcessAdapter.SpareApplicationProcessOnClickListener() {
            @Override
            public void setOnClickListener() {

            }
        });
        recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
        recyclerView.setAdapter(adapter);
    }

    @Override
    public void onClick(View v) {

    }
}
